# -*- coding: utf-8 -*-
from rest_framework import serializers
from .models import *


class GoodSerializer(serializers.ModelSerializer):
    class Meta:
        model = Good
        fields = '__all__'


class GoodMultimediaSerializer(serializers.ModelSerializer):
    class Meta:
        model = GoodMultimedia
        # fields = ('album_name', 'artist', 'tracks')
        fields = '__all__'


class GoodWithMediaGroupSerializer(serializers.ModelSerializer):
    good_goodmultimedia = GoodMultimediaSerializer(many=True)
    class Meta:
        model = Good
        fields = '__all__'


class MediaWithDetailedGoodSerializer(serializers.ModelSerializer):
    fk_good = GoodSerializer()
    class Meta:
        model = GoodMultimedia
        fields = '__all__'

